package com.hm.controller;

import com.hm.pojo.HmItem;
import com.hm.serivce.HmItemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(value = "商品推送接口",tags = "商品推送接口")
public class HmPushController {

    @Autowired
    private HmItemService hmItemService;

    @RequestMapping(value = "/HmItemPush",method = RequestMethod.GET)
    @ApiOperation("商品推送接口")
    public List<HmItem> HmItemPush(){
        List<HmItem> list = hmItemService.HmItemPush();
        return list;
    }
}
